#!/bin/bash
rm ~/bag/**
rosbag record -O ~/bag/$(date +"%Y-%m-%d_%H-%M-%S").bag \
              -e "(.*)mavros(.*)" \
                 "(.*)detect(.*)" \
                 "/Debug/pid" \
                 "/setpoint_pva" \
                 "/camera/pose" \
                 "/drone_0_waypoint_generator/waypoints" \
                 "/drone_0/control/pos_cmd" \
                 "/drone_0_planning/traj_pos_list" \
                 "/drone_0_planning/control_points_list" \
                 "/drone_0_odom_visualization/path" \
                 "/obs_odom_visualization/robot" \
                 "/drone_0_planning/grid_map/occupancy_inflate" \
                 "(.*)planning(.*)" \
                 "(.*)debug(.*)" \
                 "(.*)predict/points_list(.*)" \
                 "(.*)perception/track_result(.*)" \
                 "(.*)perception/yolo_img(.*)" \
                 "(.*)servo(.*)" \
                 "(.*)yaw(.*)" \

